package com.guoheng.safe.sys.dto.basicinfo;

import com.guoheng.safe.common.enums.ControlTypeEnum;
import com.guoheng.safe.common.enums.FireLevelEnum;
import com.guoheng.safe.common.validator.ValidEnum;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import javax.validation.constraints.Size;

/**
 * 类功能描述:　库区库房
 *
 * @author Eternal
 * @date 2019-10-24 9:10
 */
@Data
public class ReservoirDataAddDTO {
    @NotBlank
    @Size(max = 15)
    private String reservoirCode;

    @NotBlank
    @Size(max = 50)
    private String reservoirName;

    @NotBlank
    @Size(max = 50)
    private String geographicInfo;

    @NotBlank
    @Size(max = 50)
    private String reservoirArea;

    @PositiveOrZero
    @NotNull
    private Integer reservoirNum;

    @NotBlank
    @Size(max = 15)
    private String storageRoomCode;

    @NotBlank
    @Size(max = 50)
    private String storageRoomName;

    @NotBlank
    @Size(max = 50)
    private String storageRoomForm;

    @NotBlank
    @Size(max = 50)
    private String storageRoomStructure;

    @NotBlank
    @Size(max = 255)
    private String storageMaterialType;

    @NotBlank
    @Size(max = 255)
    private String storageMaterialNum;

    @ValidEnum(enumClass = FireLevelEnum.class)
    private Integer fireLevel;

    private Double longitude;

    private Double latitude;
}